export default [
  {
    path: '/',
    routes: [
      {
        path: '/',
        redirect: '/user/login',
      },
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/login',
          },
          {
            name: 'register',
            path: '/user/register',
            component: './user/register',
          },
        ],
      },
      {
        component: '../layouts/TopMenuLayout',
        routes: [
          {
            path: '/algorithm/dataCenter',
            name: 'dataCenterList',
            component: './algorithmModel/dataCenter',
          },
          {
            path: '/algorithm/modelCenter',
            name: 'modelCenterList',
            component: './algorithmModel/modelCenter',
          },
          {
            path: '/algorithm/modelTest/:type/:id',
            name: 'modelTest',
            component: './algorithmModel/modelTest',
          },
          {
            path: '/algorithm/mark/:type/:id',
            name: 'mark',
            component: './algorithmModel/mark',
          },
          {
            path: '/rules',
            name: 'rules',
            routes: [
              {
                path: '/rules',
                name: 'rulesList',
                component: './rulesModel',
              },
              {
                path: '/rules/viewModel/:id',
                name: 'rulesModelView',
                component: './rulesModel/components/viewModel',
              },
            ],
          },
          {
            path: '/resource/dictionary',
            name: 'dictionary',
            component: './resource/dictionary',
          },
          {
            path: '/resource/organization',
            name: 'organization',
            component: './resource/organization',
            routes: [
              {
                path: '/resource/organization',
                redirect: '/resource/organization/allOrganization',
              },
              {
                path: '/resource/organization/allOrganization',
                name: 'allOrganization',
                component: './resource/organization/components/allOrganization',
              },
            ],
          },
          {
            path: '/resource/addOrganization/:id/:type',
            name: 'addOrganization',
            component: './resource/organization/components/addOrganization',
          },
          {
            path: '/resource/vector',
            name: 'vector',
            component: './resource/vector',
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
]
